package com.dragon.modules.yuegou.mapper.coupon;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.coupon.MerchantCouponEntity;
import com.dragon.modules.yuegou.model.coupon.MerchantCoupon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 商户优惠券（商户购买优惠券，然后送给会员） Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-02-28 18:30:17
 * @version 2.0
 */
@Component("coupMerchantCouponMapper")
public interface MerchantCouponMapper extends BaseMapper<MerchantCouponEntity> {

	IPage<MerchantCoupon> merchantApplyParkCoupon(IPage<MerchantCoupon> page,
												  @Param("merchantId") String merchantId);


	IPage<MerchantCoupon> yshAppMerchantApplyParkCoupon(IPage<MerchantCoupon> page,
															@Param("merchantId") String merchantId);


	IPage<MerchantCoupon> merchantGrantList(IPage<MerchantCoupon> page,
														   @Param("merchantId") String merchantId);

}
